/**
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.gitee.huangjianbo.supos.openapi.core.http.request;

import java.util.ArrayList;
import java.util.List;

import io.gitee.huangjianbo.supos.openapi.core.http.HttpHeader;
import io.gitee.huangjianbo.supos.openapi.core.http.HttpPath;

/**
 * 空参，用于某些无参调用的接口
 *
 * @author tomcat
 * @version 1.0
 */
public final class EmptyArgs implements RequestArguments {

    private static final long serialVersionUID = 3527850976383135733L;

    private static final EmptyArgs INSTANCE = new EmptyArgs();

    public static EmptyArgs getDefault() {
        return EmptyArgs.INSTANCE;
    }

    @Override
    public HttpPath toHttpPath(HttpPath definePath) {
        return definePath;
    }

    @Override
    public String toQueryString() {
        return "";
    }

    @Override
    public HttpHeader toHeader() {
        return HttpHeader.of();
    }

    @Override
    public String toBodyJsonString() {
        return "";
    }

    @Override
    public List<MultipartFormDataPair> toMultipartFormData() {
        return new ArrayList<>();
    }
}
